Skip to content

Conversation

@alexekdahl
Copy link
Owner

@alexekdahl alexekdahl commented Nov 8, 2025

Users can now choose where the floating marks window appears on the screen via the new ui.position option.

This change improves UI flexibility, especially for users who prefer to keep the main editing area visible below the marks window. It makes the plugin’s interface more customizable without complicating setup.

require("marksman").setup({
  ui = {
    position = "top_center", -- options: "center" (default), "top_center", "bottom_center"
  },
})

center (default): Keeps the existing centered window behavior.
top_center: Aligns the window near the top of the screen.
bottom_center: Aligns the window near the bottom.

If an invalid value is provided, the window gracefully falls back to center.

Addressing #24
Screenshot from 2025-11-08 21-36-34
Screenshot from 2025-11-08 21-35-40

…m_center)

Adds `ui.position` option to control where the marks window appears.
Defaults to 'center'. Supported values:
- top_center: positions the window near the top, centered horizontally
- bottom_center: positions it near the bottom
- center: keeps the existing centered behavior
Copy link

@fadedreams fadedreams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with ui.position = "top_center" — works perfectly!
Please merge!

Extends the configuration schema to include the new `ui.position` field.
@alexekdahl alexekdahl force-pushed the alexekdahl/configure-ui branch from e8b8eba to da1d2c7 Compare November 9, 2025 09:54
@alexekdahl alexekdahl merged commit c774321 into main Nov 9, 2025
2 checks passed
@alexekdahl alexekdahl deleted the alexekdahl/configure-ui branch November 9, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants